 /**
   * Copyright 2014 Viettel Telecom. All rights reserved.
   * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
   */
 package com.viettel.core.bussiness.cms; 
import org.springframework.beans.factory.annotation.Autowired;

import com.viettel.core.dao.cms.FAQsDAO;
import com.viettel.core.entities.cms.FAQs;
import com.viettel.core.exceptions.BusinessException;
import com.viettel.core.exceptions.DataAccessException;
 /**
   *  Mo ta muc dich cua lop (interface)
   *  @author: TOANTM1
   *  @version:  
   *  @since: 27/02/2014 - 11:34:02
   */
 public class FAQsMgrImpl implements FAQsMgr{ 
	@Autowired 
	FAQsDAO faqsDAO; 
 
 	/**@author TOANTM1
  	 * 27/02/2014 - 11:34:02
  	 * For: 
  	 * @description: 
  	 */
 	@Override 
	public FAQs getFAQsById(Integer id) throws BusinessException { 
		try { 
			return  faqsDAO.getFAQsById(id); 
		} catch (DataAccessException e) { 
			throw new BusinessException(e); 
		} 
	} 
 
 	/**@author TOANTM1
  	 * 27/02/2014 - 11:34:02
  	 * For: 
  	 * @description: 
  	 */
 	@Override 
	public FAQs createFAQs(FAQs faqs) throws BusinessException { 
		try { 
			return faqsDAO.createFAQs(faqs); 
		} catch (DataAccessException e) { 
			throw new BusinessException(e); 
		} 
	} 
 
 	/**@author TOANTM1
  	 * 27/02/2014 - 11:34:02
  	 * For: 
  	 * @description: 
  	 */
 	@Override 
	public void updateFAQs(FAQs faqs) throws BusinessException { 
		try { 
			faqsDAO.updateFAQs(faqs); 
		} catch (DataAccessException e) {	 
			throw new BusinessException(e); 
		} 
	} 
 
 	/**@author TOANTM1
  	 * 27/02/2014 - 11:34:02
  	 * For: 
  	 * @description: 
  	 */
 	@Override 
	public void deleteFAQs(FAQs faqs) throws BusinessException { 
		try { 
			faqsDAO.deleteFAQs(faqs); 
		} catch (DataAccessException e) { 
			throw new BusinessException(e); 
		} 
	} 
} 
